package com.openscorer;

import java.util.ArrayList;

public class Enumerated extends Scorable {
	public Enumerated(String name, ArrayList<String> values, FormattingOptions foptions) {
		values_ = values;
		name_ = name;
		foptions_ = foptions;
	}
	public String which() { return values_.get(value_); }
	
	// The following are for internal use only.
	public FormattingOptions getFOptions() { return foptions_; }
	public String getName() { return name_; }
	public void visit(ScorableVisitor v) {
		v.visitEnumated(this);
	}
	public Scorable deepCopy() {
		return new Enumerated(name_, values_, foptions_);
	}
	String name_;
	FormattingOptions foptions_;
	ArrayList<String> values_;
	int value_;
}
